package com.micangcaihang.micang.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * <pre>
 *     author : Fandy
 *     e-mail : fandayongfly@gmail.com
 *     time   : 2017/08/04
 *     update : 2017/08/04
 *     desc   : 周边配套实实体类
 *     version: 1.0
 * </pre>
 */

public class TaskRimMatingEntity {
    private String community_id;
    private List<SupportIdBean> business_matching;
    private List<SupportIdBean> life_support;
    private List<SupportIdBean> other_support;

    public String getCommunity_id() {
        return community_id == null ? "0" : community_id;
    }

    public void setCommunity_id(String community_id) {
        this.community_id = community_id;
    }

    public List<SupportIdBean> getBusiness_matching() {
        if (business_matching == null) {
            setBusiness_matching(new ArrayList<>());
        }
        return business_matching;
    }

    public void setBusiness_matching(List<SupportIdBean> business_matching) {
        this.business_matching = business_matching;
    }

    public List<SupportIdBean> getLife_support() {
        if (life_support == null) {
            setLife_support(new ArrayList<>());
        }
        return life_support;
    }

    public void setLife_support(List<SupportIdBean> life_support) {
        this.life_support = life_support;
    }

    public List<SupportIdBean> getOther_support() {
        if (other_support == null) {
            setOther_support(new ArrayList<>());
        }
        return other_support;
    }

    public void setOther_support(List<SupportIdBean> other_support) {
        this.other_support = other_support;
    }

    public static class SupportIdBean {
        /**
         * support_id : 2
         * support_name : 大型商场
         */

        private String support_id;
        private String support_name;

        public String getSupport_id() {
            return support_id == null ? "" : support_id;
        }

        public void setSupport_id(String support_id) {
            this.support_id = support_id;
        }

        public String getSupport_name() {
            return support_name == null ? "" : support_name;
        }

        public void setSupport_name(String support_name) {
            this.support_name = support_name;
        }
    }

}
